Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 7 - Control Statements / Tell Statements


Tell (Simple Statement)

A simple Tell statement specifies the object to which to send a command.

SYNTAX
tell referenceToObject to statement 
where

referenceToObject is a reference to an application object, system object, or
script object.

statement is any AppleScript statement.

EXAMPLE
tell front window of application "Scriptable Text Editor" to close
NOTES
If referenceToObject specifies an application on a remote computer, additional conditions must be met. These conditions are described in "References to Applications," which begins on page 145.

If referenceToObject specifies an application on the same computer that is not running, AppleScript launches the application.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996